package com.sora.pipeline.domain.dto;

import jakarta.validation.constraints.*;
import lombok.Data;

import java.util.List;

/**
 * 批量状态更新请求DTO
 * 
 * @author system
 * @since 2025-01-20
 */
@Data
public class BatchStatusUpdateRequest {
    
    /**
     * 缺陷ID数组
     */
    @NotEmpty(message = "缺陷ID数组不能为空")
    private List<Long> defectIds;
    
    /**
     * 状态：pending/confirmed/in_progress/completed/closed
     */
    @NotBlank(message = "状态不能为空")
    @Pattern(regexp = "^(pending|confirmed|in_progress|completed|closed)$", 
             message = "状态只能是pending/confirmed/in_progress/completed/closed")
    private String status;
    
    /**
     * 备注
     */
    @Size(max = 500, message = "备注长度不能超过500字符")
    private String remarks;
}
